package com.example.blog.dao;

import com.example.blog.pojo.user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface userRepository {

    @Select("select * from blog.user where userName = #{userName} and password =#{password}")
    public user findByUsernameAndPassword( String userName,  String password);
}
